<?php
namespace app\api\model\wanlshop;

use think\Model;

class Store extends Model

{
    protected $name = 'shop_dianpu';

    public function hotSaleGoods(){
        return $this->hasMany(Goods::class,'dianpu_id','id')->limit(3)->order('sales desc')->field('id,dianpu_id,title,image,sales,price,vip_price');
    }

    public function getImagesAttr($val){
        return cdnurl($val);
    }
}